import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;


public class LiczbaTestTest 
{
	private Liczba liczba1;
	
	@Before
	public void setUp() throws Exception 
	{
		liczba1 = new Liczba();
	}
	@After
	public void tearDown() throws Exception 
	{
		liczba1 = null;
	}
	@Ignore
	@Test(timeout = 500)
	public void ignore() throws Exception
	{
		liczba1 = new Liczba("45", 9);
	}
	@Test(expected = NumberFormatException.class)
	public void testujemy() throws Exception
	{
		Integer.parseInt("sdvs");
	}
	@Test
	public void test() throws Exception
	{
		char expected  = 'F';
		char result = liczba1.znak(15);
		assertEquals(expected, result);		
	}
	
}
